//Calculated position
function averageWidth(divNum,div){
   var  devWidth=document.documentElement.clientWidth||document.body.clientWidth;
   var  divWidth=div.offsetWidth;
   var a=divNum*(divWidth+2);
   var b=divNum+1;
   var c=(devWidth-a)/b+"px";
   return c; 
   //return is a string;
}
 //Parameter have to need "";
function getId(targetId){
	return document.getElementById(targetId);
}
//get device height
function devH(){
	return document.documentElement.clientHeight;
}
//get device width
function devW(){
	return document.documentElement.clientWidth;

}
//get Control's width
function getSf(Control){
	var cl=document.getElementById(Control);
	var x=cl.offsetWidth;
	var y=cl.offsetHeight;
	return {w:x,h:y};
}
//create Element
function create(Element){
	return document.createElement(Element);
}
function averageHeight(divNum,div){
   var  devWidth=document.documentElement.clientHeight||document.body.clientHeight;
   var  divWidth=div.offsetHeight;
   var a=divNum*(divWidth+2);
   var b=divNum+1;
   var c=(devWidth-a)/b+"px";
   return c; 
   //return is a string;
}